from flask import request
from . import carbon_finance_bp
from controller.carbon_finance.carbon_finance_controller import SharesHandler


SharesHandler()


@carbon_finance_bp.route('/get_categories', methods=['POST'])
def get_categories():
    return SharesHandler.get_categories(request)


@carbon_finance_bp.route('/get_shares', methods=['POST'])
def get_shares():
    return SharesHandler.get_shares(request)


@carbon_finance_bp.route('/daily_image', methods=['POST'])
def get_daily_image():
    return SharesHandler.get_daily_image(request)


@carbon_finance_bp.route('/range_image', methods=['POST'])
def get_range_image():
    return SharesHandler.get_range_image(request)


@carbon_finance_bp.route('/diagnosis', methods=['POST'])
def get_diagnosis():
    return SharesHandler.get_diagnosis(request)


@carbon_finance_bp.route('/base', methods=['POST'])
def get_base_info():
    return SharesHandler.get_base_info(request)


@carbon_finance_bp.route('/finance_year', methods=['POST'])
def get_finance_year():
    return SharesHandler.get_finance_year(request)


@carbon_finance_bp.route('/common', methods=['POST'])
def get_common():
    return SharesHandler.get_common(request)


@carbon_finance_bp.route('/knowledge_graph', methods=['POST'])
def get_knowledge_graph():
    return SharesHandler.get_knowledge_graph(request)


@carbon_finance_bp.route('/shareholder_change', methods=['POST'])
def get_shareholder_change():
    return SharesHandler.get_shareholder_change(request)


@carbon_finance_bp.route('/get_pettm', methods=['POST'])
def get_price_earning_ratio():
    return SharesHandler.get_price_earning_ratio(request)

